package com.app.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.app.entity.ResidentialGuarantee;

public interface UserGuaranteeDao {
	
	/**
	 * 插入用户维修信息
	 * @param residentialGuarantee
	 * @return
	 */
	int insertUserGuarantee(ResidentialGuarantee residentialGuarantee); 
	/**
	 * 跟新维修状态信息
	 * @param residentialGuarantee
	 * @return
	 */
	int updateUserGuarantee(ResidentialGuarantee residentialGuarantee);
	/**
	 * 删除此保修信息
	 * @param residentialGuarantee
	 * @return
	 */
	int deleteUserGuarantee(ResidentialGuarantee residentialGuarantee);
	/**
	 * 分页数据
	 * @param userName
	 * @return
	 */
	List<ResidentialGuarantee> selectUserGuaranteeList(@Param("residentialGuarantee") ResidentialGuarantee residentialGuarantee,@Param("offset") int offset,@Param("pageSize") int pageSize);
	/**
	 * 分页的数据的数量
	 * @param userName
	 * @return
	 */
	int selectUserGuaranteeListNum(@Param("residentialGuarantee") ResidentialGuarantee residentialGuarantee);
}
